	$(document).ready(function()
	{
		$("#submit").click(function(){
			
				$("#info_name").html("");
				//利用struts2֤调用Action
				$.ajax({
					url:'delete.action',
					type:'post',
					dataType:'json',
					data:'categoryNo='+$('#categoryNo').attr('value')+'&categoryName='+$('#categoryName').attr('value'),
					error:function(){
						location.href="list.action";
					},
					success:function()
					{
						location.href="list.action";
					}
				});
			
		});
	});

	
	$(document).ready(function()
			{
				$("#back").click(function(){
					location.href='list.action';
				});
			});
